package com.yixun.lbx.controller.informationManagement;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import reactor.util.annotation.Nullable;

/*TODO
 * ====== 信息管理-=======================
 * */
@Controller
@RequestMapping("/sys_im")
public class Im_ViewController {

    /*
     * 信息管理 > 信息管理 > 政策法规
     * */
    @GetMapping("/goPr")
    public String goPoliciesRegulations() {
        return "/lbx/informationManagement/sys_policiesRegulations";
    }

    /* 添加 更新*/
    @GetMapping("/addPr")
    public String addPr(@Nullable String id, Model model) {
        model.addAttribute("id", id);
        return "/lbx/informationManagement/addPr";
    }

    /*
     * 信息管理 > 养殖知识 > 养殖知识
     * */
    @GetMapping("/goBk")
    public String goBreedingKnowledge() {
        return "/lbx/informationManagement/sys_breedingKnowledge";
    }

    /* 添加 更新*/
    @GetMapping("/addBk")
    public String addBk(@Nullable String id, Model model) {
        model.addAttribute("id", id);
        return "/lbx/informationManagement/addBk";
    }

}
